package com.guodexian.service.impl;

/**
 * 类说明：<br>
 *
 * @author PC-31 <br>
 * 2024/12/24 16:08<br>
 * @since 1.0 <br>
 * 黄淮学院计科2201B杨蕊 <br>
 * 点击<a href="http://www.xuejiaao.com/images/qrcode.jpg"> <br>
 */
import com.guodexian.entity.User;
import com.guodexian.mapper.UserMapper;
import com.guodexian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectUserById(int id) {
        return userMapper.selectById(id);
    }

    @Override
    public int insertUser(User user) {
        return userMapper.insert(user);
    }

    @Override
    public int updateUser(User user) {
        return userMapper.update(user);
    }

    @Override
    public int deleteUserById(int id) {
        return userMapper.deleteById(id);
    }
}